package com.seele.tigerwallet.ui.views;

import android.content.Context;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.seele.tigerwallet.R;

public class FoundHreadView extends LinearLayout {


    private TextView mTextView;
    public FoundHreadView(Context context) {
        this(context, null);
    }

    public FoundHreadView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public FoundHreadView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context);
    }

    private void initView(Context context) {
        View view = View.inflate(context, R.layout.foud_head, this);
        mTextView=view.findViewById(R.id.head_tx);

    }

    public void setTitle(String title){
        if (TextUtils.isEmpty(title)){
            return;
        }
        mTextView.setText(title);

    }
}
